package slacker;

import java.util.concurrent.Callable;

/**
 * @author gaopeng
 * @date 2019/12/7 3:34 下午
 */
public class Minister {

    public static void main(String[] args) {
        int count = 10;
        for (int j = 0; j < count; j++) {
            new Thread(new Runnable() {
                @Override
                public void run() {
                    int num=5;
                    for (int i = 0; i < num; i++) {
                        Emperor emperor = Emperor.getInstance();
                        emperor.say(Thread.currentThread().getName());
                    }
                }
            },"Thread"+j).start();
        }
    }
}
